package com.kk.springcloud.dao;

import com.kk.entities.Payment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author o_o
 */
@Mapper
public interface PaymentDao {

    @Insert("insert into payment(serial) values(#{serial})")
    int create(Payment payment);

    Payment getPaymentById(@Param("id") Integer id);
}
